package datasource;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import java.sql.Connection;
import java.sql.SQLClientInfoException;
import java.sql.SQLException;

/**
 * Created by Administrator on 2017/9/14.
 */
public class C3P0Coll {
    public  static ComboPooledDataSource cpsd=null;
    static {
        cpsd=new ComboPooledDataSource();
    }
    public  static Connection getConnecyion() throws SQLException {
        return  cpsd.getConnection();
    }
}
